/**
 * Created by user on 2018/3/7.
 */
var path = require('path');
var uglify = require('uglifyjs-webpack-plugin');
module.exports = {
  entry: "./src/app.js",
  output: {
    path: __dirname,
    filename: "./dist/bundle.js"
  },
  module: {
    loaders: [
      {
        loader: 'babel-loader',
        query: {
          presets: ['es2015', 'stage-0']
        }
      }
    ]
  },
  plugins: [
    new uglify()
  ]
}